package se.joakimback.decorator.support;

import java.awt.image.BufferedImage;

public class ImageUtils {
	public static BufferedImage clone(BufferedImage pImage) {
		BufferedImage vClone = new BufferedImage(pImage.getWidth(), pImage
				.getHeight(), pImage.getType());
		
		vClone.getGraphics().drawImage(pImage, 0, 0, null);
		
		return vClone;
	}
}
